04.05.2013, 11:49
Hello!
I am trying to make my event system, but when an admin type /derby, then he is teleported to derby arena, but it's blank...
Code:
Thanks for your help
I am trying to make my event system, but when an admin type /derby, then he is teleported to derby arena, but it's blank...
Code:
PHP код:
CMD:derby(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_LEVEL] < 1) return SendClientMessage(playerid, COLOR_RED, "You are Not Allowed To Use This Command!");
if(gPlayerInfo[playerid][PLAYER_JAILED] == 1)return SendClientMessage(playerid, COLOR_RED, "ERROR: You Cannot Use Any Command When You're Jailed!");
if(sscanf(params, "s", params)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /derby [monsters/sandkings/bangers]");
if(!strcmp(params, "monsters", true))
{
new monsters;
SetPlayerPos(playerid, -1372.7242,930.6412,1041.5313);
SetPlayerInterior(playerid, 7);
monsters = CreateVehicle(444,-1478.7618,943.6302,1041.3199,66.6085,0,196,124);
monsters = CreateVehicle(444,-1469.9274,939.5936,1041.3219,73.5877,0,196,124);
monsters = CreateVehicle(444,-1461.8712,936.9880,1041.3203,75.5558,0,196,124);
monsters = CreateVehicle(444,-1452.4550,934.3753,1041.3235,80.0687,0,196,124);
monsters = CreateVehicle(444,-1442.4575,932.4373,1041.3236,82.2893,0,196,124);
monsters = CreateVehicle(444,-1432.0989,931.2426,1041.3236,87.0216,0,196,124);
monsters = CreateVehicle(444,-1423.1830,931.0004,1041.3236,89.1793,0,196,124);
monsters = CreateVehicle(444,-1412.1241,930.9387,1041.3237,88.6588,0,196,124);
monsters = CreateVehicle(444,-1401.5637,930.6543,1041.3237,89.9734,0,196,124);
monsters = CreateVehicle(444,-1388.2822,930.6476,1041.3239,89.9733,0,196,124);
LinkVehicleToInterior(monsters, 7);
GameTextForAll("~w~Derby event with ~g~MONSTERS ~w~is loading...",3000,3);
}
else if(!strcmp(params, "sandkings", true))
{
new sandkings;
SetPlayerPos(playerid, -1372.7242,930.6412,1041.5313);
SetPlayerInterior(playerid, 7);
sandkings = CreateVehicle(495,-1478.7618,943.6302,1041.3199,66.6085,0,196,124);
sandkings = CreateVehicle(495,-1469.9274,939.5936,1041.3219,73.5877,0,196,124);
sandkings = CreateVehicle(495,-1461.8712,936.9880,1041.3203,75.5558,0,196,124);
sandkings = CreateVehicle(495,-1452.4550,934.3753,1041.3235,80.0687,0,196,124);
sandkings = CreateVehicle(495,-1442.4575,932.4373,1041.3236,82.2893,0,196,124);
sandkings = CreateVehicle(495,-1432.0989,931.2426,1041.3236,87.0216,0,196,124);
sandkings = CreateVehicle(495,-1423.1830,931.0004,1041.3236,89.1793,0,196,124);
sandkings = CreateVehicle(495,-1412.1241,930.9387,1041.3237,88.6588,0,196,124);
sandkings = CreateVehicle(495,-1401.5637,930.6543,1041.3237,89.9734,0,196,124);
sandkings = CreateVehicle(495,-1388.2822,930.6476,1041.3239,89.9733,0,196,124);
LinkVehicleToInterior(sandkings, 7);
GameTextForAll("~w~Derby event with ~g~SANDKINGS ~w~is loading...",3000,3);
}
else if(!strcmp(params, "bangers", true))
{
new bangers;
SetPlayerPos(playerid, -1372.7242,930.6412,1041.5313);
SetPlayerInterior(playerid, 7);
bangers = CreateVehicle(504,-1478.7618,943.6302,1041.3199,66.6085,0,196,124);
bangers = CreateVehicle(504,-1469.9274,939.5936,1041.3219,73.5877,0,196,124);
bangers = CreateVehicle(504,-1461.8712,936.9880,1041.3203,75.5558,0,196,124);
bangers = CreateVehicle(504,-1452.4550,934.3753,1041.3235,80.0687,0,196,124);
bangers = CreateVehicle(504,-1442.4575,932.4373,1041.3236,82.2893,0,196,124);
bangers = CreateVehicle(504,-1432.0989,931.2426,1041.3236,87.0216,0,196,124);
bangers = CreateVehicle(504,-1423.1830,931.0004,1041.3236,89.1793,0,196,124);
bangers = CreateVehicle(504,-1412.1241,930.9387,1041.3237,88.6588,0,196,124);
bangers = CreateVehicle(504,-1401.5637,930.6543,1041.3237,89.9734,0,196,124);
bangers = CreateVehicle(504,-1388.2822,930.6476,1041.3239,89.9733,0,196,124);
LinkVehicleToInterior(bangers, 7);
GameTextForAll("~w~Derby event with ~g~BANGERS ~w~is loading...",3000,3);
}
return 1;
}