10.05.2013, 06:17
Hello guys little help i want help on this text so im try to create but i cant
im add it Onplayertext but its work both so when im type hey heal me its give armour too T_T can someone fix this ? thx a lot >< /// COlonel
pawn Код:
if(strfind("hey heal me", "hey heal me", true) != -1) //returns 4 (!= -1 because -1 would be 'not found')
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100.0);
}
}
if(strfind("hey armour me", "hey armour me", true) != -1) //returns 4 (!= -1 because -1 would be 'not found')
{
if(IsPlayerAdmin(playerid))
{
SetPlayerArmour(playerid, 100.0);
}
}