13.03.2014, 01:26
I am creating a Car system.
When the player changes state if he doesn't own the car i want him not to be able to drive it.
in Onplayerstate change to driver state i put this:
what do i do to get this to work
here is my car enum:
please help me
When the player changes state if he doesn't own the car i want him not to be able to drive it.
in Onplayerstate change to driver state i put this:
Код:
new Owner[128] = CarInfo[idx][cOwner];
GetPlayerName(playerid, name, sizeof(name));
if(Owner == name)
{
SendClientMessage(playerid, COLOR_RED, "YOU DO NOT OWN THIS CAR");
return 0;
}
here is my car enum:
Код:
enum carInfo
{
cStatus,
cOwner[32],
Float:cX,
Float:cY,
Float:cZ,
Float:cAngle,
cModel,
cColor1,
cColor2,
Text3D:bText,
cMod1,
cMod2,
cMod3,
cMod4,
cMod5,
cMod6
}
new CarInfo[MAX_CAR][carInfo];

