- 0
Comanda cand ai un job
-
Similar Content
-
- 4 replies
- 191 views
-
- 1 reply
- 143 views
-
- 1 reply
- 442 views
-
Comanda /spec
By VAurel,
- 4 answers
- 329 views
-
- 4 answers
- 669 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
OnlyStyle
Salut ,as vrea sa stiu cum sa pun sa nu poti folosi o comanda cand ai un job, de exemplu la bus, dai /startwest si vreau sa nu poti da /v find1 ...
[pawn]if(strcmp(cmd, "/startwest", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 14)
{
if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
{
BusrouteWest[playerid][0] = 0;
BusrouteEast[playerid][0] = 0;
}
if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
{
new playervehicleid = GetPlayerVehicleID(playerid);
if(IsABus(playervehicleid))
{
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, "~g~Bus Route Started", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTRED, "---------West Los Santos Bus Route-----------");
SendBusRoute(playerid, 1);
SendClientMessage(playerid, COLOR_RED, " ");
SendClientMessage(playerid, COLOR_GREEN, "Red markers will be placed along the route.");
SendClientMessage(playerid, COLOR_GREEN, "Your service will be advertised to nearby players at the next stop automatically.");
//GangZoneHideForPlayer(playerid, buszoneeast);
//GangZoneHideForPlayer(playerid, buszonewest);
BusrouteWest[playerid][0] = 1;
BusrouteWest[playerid][1] = playervehicleid;
//BusrouteWest[playerid][2] = 0;
/* for (new i=0; i<=MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && GetPlayerVehicleID(i) == playervehicleid) BusrouteWest[playerid][2] ++;
}*/
OnPlayerEnterCheckpoint(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not in a bus!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are already on a route!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not a bus driver!");
}
}
return 1;
}[/pawn]
Dupa ce am executat aceasta comanda vreau sa nu mai pot da /v find1-2-3-4-5-6-7 si sa scrie: Nu poti da /v find1-2-3-4-5-6-7 cand esti la Munca.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts