SetSpawnInfo - 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: SetSpawnInfo (
/showthread.php?tid=167027)
SetSpawnInfo -
gunslinger - 10.08.2010
THe command I've made for set skin :
Код:
dcmd_skin(playerid,params[])
{
new tmp2[256], Index; tmp2 = strtok(params,Index);
new skin = strval(tmp2);
if(!strlen(tmp2)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /skin [skin id]");
if(!IsValidSkin(skin)) return SendClientMessage(playerid, COLOR_WHITE, "Skin Invalido");
SetPlayerSkin(playerid, skin);
return SendClientMessage(playerid, vermelho, "/si for save skin and your spawn position!!");
}
and the "/si" :
Код:
if(strcmp("/si", cmdtext, true, 4) == 0)
{
GetPlayerPos(playerid, posx,posy,posz);
GetPlayerSkin(playerid, sk);
SendClientMessage(playerid, vermelho, "skin/position sucesfully saved");
SetSpawnInfo(playerid, 0, sk, posx, posy, posz,0,0,0,0,0,0,0);
spawn[playerid]=1;
return 1;
}
It's already on the top new posx,posy,posz,spawn[MAX_PLAYERS];
But how do I change the spawn pos and player skin info after use these commands? Last time I tried got a weird error, which is on my signature the screen ; Thank you.
Re: SetSpawnInfo -
gunslinger - 11.08.2010
Someone ? o. o