SetSpawnInfo
#1

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.
Reply
#2

Someone ? o. o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)