SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Includes (https://forum.sa-mp.com/forumdisplay.php?f=83)
-   -   [Include] [ MIC ] - [ Make It Comfortable ] - [ Redefined ] (https://forum.sa-mp.com/showthread.php?t=12909)

Kapil 23/09/2007 03:00 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Quote:

Originally Posted by Pentel
Wiki Example Request: Creategang(name,color);

ok i will, for now,
//OnTopOfScript
new mafia;
//OnGamemodeinit
mafia = Creategang("Mafians",COLOR_WHITE); //now gangid is mafia



Pentel 23/09/2007 03:16 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Quote:

Originally Posted by Kapil
Quote:

Originally Posted by Pentel
Wiki Example Request: Creategang(name,color);

ok i will, for now,
//OnTopOfScript
new mafia;
//OnGamemodeinit
mafia = Creategang("Mafians",COLOR_WHITE); //now gangid is mafia



Okey I understand this, so far.
If I want to make like: /gang create Mafia
Then we make it like:
pawn Code:
if(strcmp(cmd, "/gang", true) == 0)
        {
            new gangcmd;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /gang [Create/Invite/Join/Quit]");
            return 1;
        }
        giveplayerid = strval(tmp);
       
        if(strcmp(tmp, "create", true)==0)
          gangcmd = 1;
        else if(strcmp(tmp, "invite", true)==0)
          gangcmd = 2;
        else if(strcmp(tmp, "join", true)==0)
          gangcmd = 3;
        else if(strcmp(tmp, "quit", true)==0)
          gangcmd = 4;
         
                tmp = strtok(cmdtext, idx);
        if(gangcmd < 3 && !strlen(tmp)) {
          if(gangcmd==0)
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gang [create/join/invite/quit] [name/number]");
            else if(gangcmd==1)
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gang [create] [name]");
            else if(gangcmd==2)
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gang [invite] [playerID]");
            return 1;
        }
I want to make gangs in-game, not built-in gangs. Is this even possible with MIC?
Thanks for support!

gothem 23/09/2007 04:11 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Quote:

Originally Posted by Kapil
Quote:

Originally Posted by gothem
Well Now I Fix the problem.
I Found A bug:
When pick the pickup of a house say "Press ENTER to select" And "Press SPACEBAR to exit"
The Problem was ENTER IS FOR EXIT! AND SPACEBAR FOR SELECT! :roll:
and when press ENTER appear falling

wait, what ? u get a message "Press ENTER to select" And "Press SPACEBAR to exit" ?
but why, i didnt organize that ? it is some thing organized for the Gantom Gym.

__________________________________________________ _________________________

UPDATED to 0.4 BETA

-o Gang System is implemented.
- you can have its parameters in mic_gang.
- Its functions will be described in wiki shortly.

__________________________________________________ _________________________

Gang System Function updated in wiki too.

i like say them pick the pickup of the house appear a menu right?? :|

and below appear the intructions for how select and exit:
"Press ENTER to select" And "Press SPACEBAR to exit"

i like say the intructions are bad is:
"Press SPACEBAR to select" And "Press ENTER to exit" ;)

Kapil 24/09/2007 01:43 AM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Quote:

I want to make gangs in-game, not built-in gangs. Is this even possible with MIC?
Code:

if(strcmp(cmdtext,"/gang create",true,12)==0){
if(strlen(cmdtext)==12){
SendClientMessage(playerid,COLOR_BLUE,"USAGE: /gang create [name]");
}
else{
gang[playerid] = CreateGang(cmdtext[13],GetPlayerColor(playerid));

}
return 1;
}


Pentel 24/09/2007 02:43 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Quote:

Originally Posted by Kapil
Quote:

I want to make gangs in-game, not built-in gangs. Is this even possible with MIC?
Code:

if(strcmp(cmdtext,"/gang create",true,12)==0){
if(strlen(cmdtext)==12){
SendClientMessage(playerid,COLOR_BLUE,"USAGE: /gang create [name]");
}
else{
gang[playerid] = CreateGang(cmdtext[13],GetPlayerColor(playerid));

}
return 1;
}


Sweet, thanks m8 for the info. You might add this example to your WIKI?
**Trying to make a savesystem --> FAILED :(** so hard =/

Kapil 24/09/2007 04:27 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Quote:

**Trying to make a savesystem --> FAILED ** so hard =/
save system was much easier, did u read the WIKI examples ? its very very easy

__________________________________________

Updated MIC_GANG examples at WIKI

Pentel 24/09/2007 06:14 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Quote:

Originally Posted by Kapil
Quote:

**Trying to make a savesystem --> FAILED ** so hard =/
save system was much easier, did u read the WIKI examples ? its very very easy

__________________________________________

Updated MIC_GANG examples at WIKI

It saves the data to a file? o.O

gothem 24/09/2007 06:18 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
Kapil you can put the commands with the new and more faster versions of commands?? (DCMD)

polgast 24/09/2007 07:24 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
i dont get the load and save thing! I tried making it load and save weapons but gives errors :(

almighty 24/09/2007 08:12 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.41 BETA
 
hey kapil i see your create gnag command i dint test it yet but... can you please make a /join gang, /reject gang, /invite [playerid]?? please i think we all wanted :D


All times are GMT. The time now is 10:40 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.