06.07.2010, 21:36
i need a heal command to work only with 2 classes 0 and 4
ty
ty
new gPlayerClass[MAX_PLAYERS];
if(classid == 0)
{
gPlayerClass[playerid] = 0;
}
if(classid == 2)
{
gPlayerClass[playerid] = 2);
}
if(!strcmp(cmdtext,"/heal",true))
{
if(gPlayerClass[playerid] != 0 || gPlayerClass[playerid] != 2)) return 0;
//Rest of your healing script
return 1;
}
if(!strcmp(cmdtext,"/heal",true))
{
if(gPlayerClass[playerid] != 0 || gPlayerClass[playerid] != 2)) return 0;
//Rest of your healing script
return 1;
}