• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Jancis71

#31
SendRconCommand is not working

i tried this:

else if (strcmp(cmd, "!icon", true) == 0) {
   new Float:x,Float:y,Float:z;
   GetPlayerPos(playerid,x,y,z);
   SendRconCommand("set 16 14 %f %f %f",x,y,z);
   SendClientMessage(playerid,COLOR_TEXT,"icon has been added!");
      return 1;
   }



Quote from: [AoD]NC on July 20, 2010, 07:54:01 PM
Create icon? On radar or what :p?
yes on radar
#32
I need that for my server script, i heard something about sending rcon command, would that work, if yes how can i do that?
#33
mIRC/pawn Scripting / Re: Server time does not work
July 13, 2010, 02:37:11 PM
With pawn scripts now that is not possible
#34
Videos and Screenshots / Re: kino's vid
July 13, 2010, 10:19:33 AM
awesome!
#35
VCMP isnt closed.
#36
ShowRoom (pawn) / Re: GUPS 1.16a
July 09, 2010, 08:44:57 PM
make by yourself weapon buying script.
#37
mIRC/pawn Scripting / Re: [PAWN]Report
July 09, 2010, 06:48:02 PM
SetVehicleDoorsStatus (vehicleid, bool);
SetVehicleTyre (vehicleid, bool);
SetVehicleAlarm (vehicleid, bool);
SetVehicleLights (vehicleid, bool);
this for me is succesully working, bool is 0,1 or 2

like:

else if (strcmp(cmd, "lights", true) == 0) {
new param[256];
param = strtok(cmdtext, idx);

if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_TEXT, "You need to login first!");
else if (IsPlayerInAnyVehicle(playerid)) {
if (!strlen(param)) SendClientMessage(playerid,COLOR_TEXT,"USAGE: /c lights [on/off]");
else {
new id; id=GetPlayerVehicleID(playerid);
if(strcmp(param, "on", true) == 0) {
SetVehicleLights(id,1);
SendClientMessage(playerid,COLOR_TEXT,"Lights of vehicle turned on.");
}
else if(strcmp(param, "off", true) == 0) {
SetVehicleLights(id,0);
SendClientMessage(playerid,COLOR_TEXT,"Lights of vehicle turned off.");
}
else SendClientMessage(playerid,COLOR_TEXT,"Syntax Error! USAGE: /c lights [on/off]");
}

  }


About spawn you can do just as in samp, i made random spawn point for my server, setplayerstartposition is for skin selection.


Player positions, Interiors: VCMP one not bad SetPlayerPos(playerid, Float:X, Float:Y, Float:Z,Float:rotation,interior);

"Camera functions" too is for skin selecting

Vehicle: GetVehicleModel i made by myself, but i think too this is necessary