SA-MP Forums Archive
help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help please (/showthread.php?tid=260546)



help please - Armada - 09.06.2011

PHP код:
    new cmd[256];
    if(
strcmp(cmd"/getcar"true) == 0)
           {
               if(
IsPlayerConnected(playerid))
                   {
                      if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"ERROR: you are not admin");
                      new 
idx;
                      new 
id[1000];
                    
id strtok(cmdtext,idx);
                     if(
strlen(id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /getcar [carid]");
                      new 
Float:xFloat:yFloat:zFloat:Angel;
                       
GetPlayerPos(playeridxyz);
                    
GetPlayerFacingAngle(playeridAngel);
                    
CreateVehicle(strval(id), xyzAngel000);
                    return 
1;
                }
            }
                    
    return 
0;


no error + no work.... please help


Re : help please - Naruto_Emilio - 09.06.2011

go in game and use
/rcon login yourpassword
The password you will find it on your server.cfg then you may use this command if not just use this:
pawn Код:
new cmd[256];
    if(strcmp(cmd, "/getcar", true) == 0)
           {
               if(IsPlayerConnected(playerid))
                   {
   
                      new idx;
                      new id[1000];
                    id = strtok(cmdtext,idx);
                     if(strlen(id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /getcar [carid]");
                      new Float:x, Float:y, Float:z, Float:Angel;
                       GetPlayerPos(playerid, x, y, z);
                    GetPlayerFacingAngle(playerid, Angel);
                    CreateVehicle(strval(id), x, y, z, Angel, 0, 0, 0);
                    return 1;
                }
            }
                     
    return 0;
}



Re: help please - Armada - 09.06.2011

this is the code :
PHP код:
    new cmd[256];
    if(
strcmp(cmd"/getcar"true) == 0)
           {
               if(
IsPlayerConnected(playerid))
                   {
                      if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"ERROR: you are not admin");
                      new 
idx;
                      new 
id[1000];
                    
id strtok(cmdtext,idx);
                     if(!
strlen(id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /getcar [carid]");
                      new 
Float:xFloat:yFloat:zFloat:Angel;
                       
GetPlayerPos(playeridxyz);
                    
GetPlayerFacingAngle(playeridAngel);
                    
CreateVehicle(strval(id), xyzAngel000);
                    return 
1;
                }
            }
    return 
0;

no errors + no work still


Re: help please - Armada - 09.06.2011

please helppppp


Re : Re: help please - Naruto_Emilio - 17.06.2011

Quote:
Originally Posted by Armada
Посмотреть сообщение
please helppppp
go in game and use
/rcon login yourpassword
The password you will find it on your server.cfg then you may use this command