[HELP] Little Script
#2

new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
try this! you might using another playername
pawn Код:
if(newcar == punanicar)    
{
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, MAX_PLAYER_NAME);        
    if(strcmp(playername, "PuNaNi", true) == 0)        
    {
        SendClientMessage(playerid, COLOR_GREY, "This is your car, PuNaNi");        
    }        
    else        
    {
        RemovePlayerFromVehicle(playerid);            
        new Float:cx, Float:cy, Float:cz;            
        GetPlayerPos(playerid, cx, cy, cz);            
        SetPlayerPos(playerid, cx, cy, cz);            
        SendClientMessage(playerid, COLOR_GREY, "This car is owned to scripter PuNaNi");        
    }    
}
Reply


Messages In This Thread
[HELP] Little Script - by monster010 - 10.05.2014, 21:42
Re: [HELP] Little Script - by KillerStrike23 - 10.05.2014, 22:00

Forum Jump:


Users browsing this thread: 2 Guest(s)