01.03.2010, 19:44
i want to make a saving line to .ini like Car = and when player buys car, "Car" will be set to 1 (Car = 1), and when he loses it Car will be set to 0 (Car = 0)
i want to make lock command, :
if(pStats[playerid][pCar] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "You don't have your own car.");
}
else
{
if( VehicleLocked[carid] == 0 )
{
SendClientMessage(playerid, COLOR_WHITE, "You locked your car");
VehicleLocked[carid] = 1;
}
else
{
if( VehicleLocked[carid] == 1 )
SendClientMessage(playerid, COLOR_WHITE, "You unlocked your car");
VehicleLocked[carid] = 0;
}
but how i can get the users car ID ? ... like for each player.
i want to make lock command, :
if(pStats[playerid][pCar] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "You don't have your own car.");
}
else
{
if( VehicleLocked[carid] == 0 )
{
SendClientMessage(playerid, COLOR_WHITE, "You locked your car");
VehicleLocked[carid] = 1;
}
else
{
if( VehicleLocked[carid] == 1 )
SendClientMessage(playerid, COLOR_WHITE, "You unlocked your car");
VehicleLocked[carid] = 0;
}
but how i can get the users car ID ? ... like for each player.