05.03.2009, 04:30
pawn Код:
if(strcmp(cmd, "/rap", true) == 0)
{
new string[128], name[24];
new rap[128];
rap = bigstrtok(cmdtext, idx);
if(!strlen(rap)) return SendClientMessage(playerid, color, "Usage: /rap [rap]");
GetPlayerName(playerid, name, 24);
if(PlayerToPoint(3, playerid, .... , .... , ....)) // replace '....' with the x y and z of the pickup
{
format(string, sizeof(string), "[Rap]%s: %s", name, rap);
SendClientMessageToAll(COLOR_BLUE, string);
return 1;
}
else
{
SendClientMessage(playerid, color, "Not at a location to use this command");
}
return 1;
}

