24.08.2013, 16:15
pawn Код:
new TemVelocimetro[MAX_PLAYERS];
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(TemVelocimetro[playerid] == 1)
{
TextDrawShowForPlayer(playerid,Textdraw2);
}
else return SendClientMessage(playerid, -1, "Para ter velocimetro precisa de compra-lo! /comprarvelocimetro");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(TemVelocimetro[playerid] == 1)
{
TextDrawHideForPlayer(playerid,Textdraw2);
}
return 1;
}
CMD:comprarvelocimetro(playerid, params[])
{
TemVelocimetro[playerid] = 1;
return 1;
}