23.06.2011, 13:16
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/scoreup", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You typed /scoreup and earned +1 score!"); // Send message to player
SetPlayerScore(playerid,(GetPlayerScore(playerid))+1); // Set player score up for 1
return 1;
}
return 0;
}