public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/gotospawn", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1758.0182,-1894.4288,13.5561); SendClientMessage(playerid, 0x00C0FF, "Uspijeљno si se portao do spawna!"); } return 1; } if (strcmp(cmdtext, "/suicide", true) == 0) { SetPlayerHealth(playerid,0.0); SendClientMessage(playerid, COLOR_BASIC, "You committed suicide!"); return 1; { |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gotospawn", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1758.0182,-1894.4288,13.5561);
SendClientMessage(playerid, 0x00C0FF, "Uspiješno si se portao do spawna!");
return 1;
}
if(strcmp(cmdtext, "/suicide", true) ==0)
{
SetPlayerHealth(playerid,0.0);
SendClientMessage(playerid, COLOR_BASIC, "You committed suicide!");
return 1;
}
return 0;
}
if (strcmp("/gotospawn", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1758.0182,-1894.4288,13.5561);
SendClientMessage(playerid, 0x00C0FF, "Uspiješno si se portao do spawna!");
return 1;
}
if (strcmp(cmdtext, "/suicide", true) == 0)
{
SetPlayerHealth(playerid,0.0);
SendClientMessage(playerid, COLOR_BASIC, "You committed suicide!");
return 1;
}