- 0
Intrebare Masina personala
-
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
Shooter
Salut , am creeat niste masini personale ( nu cu /v , din gm doar pt anumiti playeri )
Intrebarea mea este : cand un player (nu propietarul vehiculului) intra in masina personala ii spune ca nu este a lui si il pune sus pe masina
Cum as putea sa fac atunci cand da enter sa ii scrie Acesta este vehicului lui x si sa nu il lase sa intre deloc sau cel putin sa poata intra sa ii spuna ca nu este a lui masina dar sa nu il mai puna pe ea sa il puna pe pamant
Scriptul
if(newcar == x)
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strcmp(sendername,"x",true))
{
SendClientMessage(playerid,COLOR_GREY," Acesta este vehiculul lui x !");
RemovePlayerFromVehicle(playerid);
RemovePlayerFromVehicle(playerid);
new Float:bx, Float:by, Float:bz;
GetPlayerPos(playerid, bx, by, bz);
SetPlayerPos(playerid, bx, by, bz);
}
}
// x
7 answers to this question
Recommended Posts