Jump to content
  • 0

Ajutor Comanda


WARfree

Question

Salutare ma puteti ajuta cu aceasta:

Quote

CMD:startwork(playerid,params[])
{
if(!PlayerToPoint(5.0, playerid, 1254.1210, -1265.0613, 13.2784)) return 1;
if(Working[playerid] == 0)
{
Working[playerid] = 1;
LastSkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, 16);
new x = random(2);
if(x == 0) {
SetPlayerCheckpoint(playerid, 1280.0118, -1262.7102, 13.5107, 2.0);
}
if(x == 1) {
SetPlayerCheckpoint(playerid, 1280.9083, -1242.0677, 13.9160, 2.0);
}
if(x == 2 || x == 3) {
SetPlayerCheckpoint(playerid, 1268.9485, -1234.4961, 17.0519, 2.0);
}
BuilderCP[playerid] = 1;
}
else SendClientMessage(playerid, 0xA8FA82FF, "You work already! If you want to you no longer work, use /stopwork.");
return 1;
}

comanda functioaneaza fara probleme, dar imi puteti spune cum sa o fac sa fie folosita doar de cei care au jobul de builder deoarece am incercat sa ii adaug linia:

Quote

if(PlayerInfo[playerid][pJob] != 5) return SendClientMessage(playerid, COLOR_ERROR, "You need to be a trucker.");

dar imi da eroarea 029 a

Ma poate ajuta cineva.

Rezolvat!

560x95_FFFFFF_FF9900_000000_000000.png
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.