- 0
Problema Barriere!!!
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Spilter
Salut Samp.ro!!La barriera Ls-Sf una se deschide alta nu(se deschide cea care vii din sf)si la poarta Ls-Lv nu se dechide niciuna
Aici code
if(strcmp(cmd, "/barrier", true) == 0)
{
if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
/*MoveDynamicObject(vama1,54.190098, -1529.675781, 5.085436, 2.5);
MoveDynamicObject(vama2,52.703281, -1540.749634, 5.067452, 2.5);
MoveDynamicObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);*/
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_1BLUE, "* You don't have an Passport, go in the City Hall and buy one.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);
SetTimer("GateClosse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
// MoveDynamicObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);
SetTimer("GateClossse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
// MoveDynamicObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);
SetTimer("GateClossse", 4000, 0);
SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier.");
return 1;
}
}
//----------------------------------[Disarm]-----------------------------------------------
if(strcmp(cmd, "/disarm", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2 || IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /disarm [playerid]");
SendClientMessage(playerid, COLOR_GRAD1, "FUNCTION: Will disarm the player.");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
ResetPlayerWeapons(giveplayerid);
printf("[ADMIN NEWS]: Admin %s disarmed %s.", sendername, giveplayer);
format(string, sizeof(string), "-| Administrator %s disarmed %s |-",sendername, giveplayer);
ABroadCast(COLOR_YELLOW,string,1);
}
else if(giveplayerid == INVALID_PLAYER_ID)
{
format(string, sizeof(string), "%d is not an activ player.", giveplayerid);
SendClientMessage(playerid, COLOR_RED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat pentru a folosi aceasta comanda.");
}
return 1;
1 answer to this question
Recommended Posts