23.03.2014, 16:54
No i set look here the command
pawn Код:
CMD:cs(playerid, params[])
{
new Float:gRandomPlayerSpawnsCS[5][0] =
{
{261.4781,3387.1755,127.5184},
{267.6548,3341.4377,127.5184},
{282.1428,3297.3818,132.4135},
{215.6659,3296.2063,132.4135},
{178.8598,3353.6843,136.3376}
};
new rand = random(sizeof(gRandomPlayerSpawnsCS));
SetPlayerPos(playerid, gRandomPlayerSpawnsCS[rand][0], gRandomPlayerSpawnsCS[rand][1], gRandomPlayerSpawnsCS[rand][2]); // Warp the player
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 5);
PlayerInDM[playerid][CS] = 1;
SetPlayerVirtualWorld(playerid, 2);
SetPVarInt(playerid, "PlayerInDM", 1);
SendTeleport(playerid, "Car Sumo", "cs");
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_ORANGE, "Welcome to {FF0000}Car Sumo");
TogglePlayerControllable(playerid, false);
SetTimerEx("PutInCS", 4000, false, "i", playerid);
GameTextForPlayer(playerid, "~R~Please wait...", 4000, 1);
return 1;
}