KAPSu Posted June 16, 2013 Report Share Posted June 16, 2013 De curand am pus pe server-ul meu job-ul Courier si vreau sa poate sa intre in masina doar daca scrie /courier , va dau si comanda de acum:[pawn]if (strcmp("/courier", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 499) { JobStatus[playerid] = 1; TruckingJob[playerid] = 1; SetPlayerCheckpoint(playerid,1110.5992,-1327.9216,13.7145,10); new name[MAX_PLAYER_NAME], string[48]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "* %s is now a Courier.", name ); SendClientMessageToAll(COLOR_YELLOW, string); return 1; } SendClientMessage(playerid, COLOR_RED,"You have to be in a courier truck to start the job"); } return 0;}[/pawn] Cel din urma va fi cel dintâi. Link to comment Share on other sites More sharing options...
Staff Posted June 16, 2013 Report Share Posted June 16, 2013 [glow=red,2,300]Nu ai zis care e problema.[/glow] [glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow] Link to comment Share on other sites More sharing options...
Kata12 Posted June 16, 2013 Report Share Posted June 16, 2013 Spune-ne ce vr sa stii. Y!M: [email protected] ( help-center sau comenzi ) Link to comment Share on other sites More sharing options...
97fresh Posted June 16, 2013 Report Share Posted June 16, 2013 mda asa ramane:)) Link to comment Share on other sites More sharing options...
leon Posted June 16, 2013 Report Share Posted June 16, 2013 Spune-ne ce vr sa stii.A zis ce vrea sa stie, daca citeai si tu cu atentie.mda asa ramane:))Nu stiu de ce mai postezi daca nu sti, doar sa faci posturi...Uite aici: Te duci la OnPlayerStateChange si faci ceva de genu: if(newstate == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); if(vehicleid == ID-U Masini .... etc) { if(JobStatus[playerid] == 0) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREEN, "Nu te poti urca !"); return 1; } } } Link to comment Share on other sites More sharing options...
Gireada Posted June 16, 2013 Report Share Posted June 16, 2013 L-am rezolvat eu pe mess. Link to comment Share on other sites More sharing options...
Question
KAPSu
De curand am pus pe server-ul meu job-ul Courier si vreau sa poate sa intre in masina doar daca scrie /courier , va dau si comanda de acum:
[pawn]if (strcmp("/courier", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 499)
{
JobStatus[playerid] = 1;
TruckingJob[playerid] = 1;
SetPlayerCheckpoint(playerid,1110.5992,-1327.9216,13.7145,10);
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s is now a Courier.", name );
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}
SendClientMessage(playerid, COLOR_RED,"You have to be in a courier truck to start the job");
}
return 0;
}[/pawn]
Cel din urma va fi cel dintâi.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts