[Tutorial] Making Simple Commands The Same Way
#7

Quote:
Originally Posted by [FU]Victious
View Post
pawn Code:
if(!strcmp(cmdtext,"/kill",true))
                      {
                      SetPlayerHealth(playerid,100);//Sets Health to 100
                      ForceClassSelection(playerid);//Forces the player to class selection
              return 1;
}
should be

pawn Code:
if(!strcmp(cmdtext,"/kill",true))
                      {
                      SetPlayerHealth(playerid,0.0);//Sets Health to 0
                      ForceClassSelection(playerid);//Forces the player to class selection
              return 1;
}
Quote:
Originally Posted by Miado_Hulk
View Post
sorry for double post but there isa mistake here :


it's if not iif
thanks
Thanks typos fixed,Tutorial edited..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)