26.10.2014, 23:05
pawn Код:
SetPlayerPos(playerid, 00,2136.7041,33.7916,26.4215,265.5875,0,0,0,0,0,0);
You are confusing SetPlayerPos with SetSpawnInfo.
SetPlayerPos expects these parameters:
Код:
SetPlayerPos(playerid, Float:x, Float:y, Float:z)
Код:
SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
Your first parameter would be the 'playerid' parameter, so that is fine how it is.
The next parameter was '00', which I am going to assume was a typo of '0, 0'.
These parameters will represent 'team' and 'skin'.
Then you have your x, y, z and angle parameters, and so on...
Код:
playerid = playerid team = 0 skin = 0 Float:x = 2136.7041 Float:y = 33.7916 Float:z = 26.4215 Float:Angle = 265.5875 weapon1 = 0 weapon1_ammo = 0 weapon2 = 0 weapon2_ammo = 0 weapon3 = 0 weapon3_ammo = 0
pawn Код:
SetSpawnInfo(playerid, 0, 0, 2136.7041, 33.7916, 26.4215, 265.5875, 0, 0, 0, 0, 0, 0);
EDIT:
Also, SetSpawnInfo should be under OnPlayerConnect, not OnPlayerSpawn.
pawn Код:
public OnPlayerConnect(playerid)
{
SetSpawnInfo(playerid, 0, 0, 2136.7041, 33.7916, 26.4215, 265.5875, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_YELLOW, "You have been given $1000 to start off with. Spend it wisely!");
return 1;
}