#2

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;
}
Reply


Messages In This Thread
/rap - by Austin_Lynn - 05.03.2009, 04:24
Re: /rap - by Grim_ - 05.03.2009, 04:30
Re: /rap - by Austin_Lynn - 05.03.2009, 05:04
Re: /rap - by Austin_Lynn - 05.03.2009, 05:12
Re: /rap - by hoodline - 05.03.2009, 06:56
Re: /rap - by MenaceX^ - 05.03.2009, 08:42
Re: /rap - by Norn - 05.03.2009, 09:05
Re: /rap - by Austin_Lynn - 05.03.2009, 20:49

Forum Jump:


Users browsing this thread: 1 Guest(s)