03.08.2010, 19:02
(
Последний раз редактировалось PotH3Ad; 03.08.2010 в 19:14.
)
Give this a try, should work...
pawn Код:
if(!strcmp(cmd, "/carlock", true, 8))
{
if(GetClosestVehicle(playerid, 5))
{
for(new i = 0; i != MAX_PLAYERS; i++)
{
if(!strcmp(CarSystem[GetClosestVehicle(playerid,5)][Carowner], pName(playerid), true))
{
CarLock[GetClosestVehicle(playerid,5)] = 1;
SetVehicleParamsForPlayer(GetClosestVehicle(playerid,5),i,0,1);
new str[95];
format(str, sizeof(str), "*%s presses a key which locks the doors of the vehicle", pName(playerid));
ProxDetector(30.0,playerid,str,MECHAT,MECHAT,MECHAT,MECHAT,MECHAT);
}
}
}
return 1;
}