29.12.2011, 09:19
I get a job mechanic..then i typed /neon.
But there is no neon this is the pawn command
But there is no neon this is the pawn command
pawn Code:
if(strcmp(cmd, "/neon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 7) { return SendClientMessage(playerid, COLOR_GREY, " You are not a Mechanic !"); }
if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, COLOR_GREY, " You are not in a vehicle !"); }
if(PlayerInfo[playerid][pCash] < 2000) { return SendClientMessage(playerid, COLOR_GREY, " You cant afford the neon !"); }
new vehicleid = GetPlayerVehicleID(playerid);
if(IsInvalidNeonVehicle(vehicleid))
{
return SendClientMessage(playerid, COLOR_GREY, " You cant mod this vehicle !");
}
DisplayDialogForPlayer(playerid, 101);
}
}