03.03.2015, 23:22
if(sscanf(params, "us", ID, Type)) ( you forgot the "s" )
Also if(strcmp(Type, "on", true) == 0)
change to :
and the off one to :
Little edit : SetPlayerHealth(playerid, 100000000); change to : SetPlayerHealth(playerid, 0x7F800000); because 1000000000000000000000 isn't gonna save you from fall damage.
Also if(strcmp(Type, "on", true) == 0)
change to :
Код:
if(!strcmp(Type, "on", false))
Код:
if(!strcmp(Type, "off", false))