29.12.2009, 06:23
Код:
if (strcmp("/prision", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-2127.9622,2677.8333,159), return 1; }
Like /Prision 2 (id2)
Thanks Beforehand
if (strcmp("/prision", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-2127.9622,2677.8333,159), return 1; }
if(!strcmp(cmdtext, "/jail", true, 5))
{
if(!strlen(cmdtext[6]))
{
SendClientMessage(playerid, COLOR_ORED, "Usage: /jail [playerid]");
return 1;
}
new ID = strval(cmdtext[6]);
new strv[170];
if(IsPlayerConnected(ID))
{
format(strv, 170, "~ You have been jailed");
SendClientMessage(ID,COLOR_ORANGE, strv);
SetPlayerPos(playerid, jail_coords_here);
}
return 1;
}
Originally Posted by [๔เгty๔ยtςђ
๔๏קקєyy ]
Ahhhhh now i see its for a roleplaying thing or something. Well you have to use is PlayerToPoint and stuff. But i just woke up so i dont really feel like making it now. Maybey i will do it later today. [Doppeyy |