19.09.2009, 14:50
Hmm oke. i scripted this command :
It was working, but not anymore, no idea why
Thanks !
Код:
if(strcmp(cmdtext, "/v get", true) == 0) { if(IsPlayerConnected(playerid)) { new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); if(PlayerInfo[playerid][pCarKey] == 255) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car to get it."); return 1; } if(PlayerInfo[playerid][pCarKey] != 255 && strcmp(playername, Cars[PlayerInfo[playerid][pCarKey]][cOwner], true) == 0) { new car = PlayerInfo[playerid][pCarKey]; new Float:pX1,Float:pY1,Float:pZ1; GetPlayerPos(playerid,pX1,pY1,pZ1); SetVehiclePos(car, pX1, pY1, pZ1); GivePlayerRM(playerid,-1337); SendClientMessage(playerid, COLOR_GREEN, "TRUCK COMPANY : Here is your car, thank you sir !"); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); return 1; } } return 1; }
Thanks !