19.02.2016, 19:17
(
Последний раз редактировалось Ramin; 19.02.2016 в 19:57.
)
Hi There In My Code Im Added One Variable See This
My Problem Is Variable My_Interior Not Change For Playerid That,s Change For All Server That Means If Player Use /derby My_Interior Changed For All The Server
I Dont Know How To Write it For Playerid
PHP код:
new My_Interior;
CMD:derby(playerid, params[])
{
if (My_Interior == 15)
{
SendClientMessage(playerid,COLOR_BLUE,"Shoma Hamaknoon Dakhele Derby Hasti");
}
else
{
My_Interior = 15;
SendClientMessage(playerid,COLOR_RED,"Baraye Khoroj Az Derby Bezanid /leavederby");
GameTextForPlayer(playerid,"~y~Khoshoomadi Be ~n~~b~Derby Deathmatch", 2000, 3);
SetPlayerPos(playerid, -1355.9592, 933.0629, 1036.3334);
SetPlayerInterior(playerid, 15);
SetPlayerVirtualWorld(playerid, 15);
SetPlayerHealth(playerid, 100);
}
return 1;
}
I Dont Know How To Write it For Playerid