mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Implement/match cmdPlayerSkin
This commit is contained in:
1 parent
b3a8ec087f
commit
8043bb3ce5
3 files changed
+22
-1
No files matched your search
+19
-1
@@ -197,7 +197,25 @@ void cmdRawSavePos(PCHAR szCmd)
|
||||
|
||||
void cmdPlayerSkin(PCHAR szCmd)
|
||||
{
|
||||
// TODO: cmdPlayerSkin .text:10068D00
|
||||
if(tSettings.bDebug)
|
||||
{
|
||||
if(!strlen(szCmd))
|
||||
{
|
||||
pChatWindow->AddDebugMessage("Usage: player_skin (skin number).");
|
||||
}
|
||||
else
|
||||
{
|
||||
int iSkin = atoi(szCmd);
|
||||
if(pGame->sub_100A0930())
|
||||
{
|
||||
CPlayerPed *pPlayerPed = pGame->FindPlayerPed();
|
||||
if(pPlayerPed)
|
||||
{
|
||||
pPlayerPed->SetSkin(iSkin);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cmdCreateVehicle(PCHAR szCmd)
|
||||
|
||||
Reference in new issue
Block a user