02.12.2009, 20:44
Please somebody post the /kill command code for me sorry for my bad english
if ( !strcmp( cmdtext, "/kill", true ) )
{
SetPlayerHealth( playerid, 0.0 );
return true;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if( !strcmp( cmdtext, "/kill", true ) == 0 ) //Like this
{
SetPlayerHealth( playerid, 0.0 );
return true;
}
return false;
}